<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
						<input id="id" name="id" th:value="${wxAdPage.id}"  type="hidden">
							<div class="form-group">	
								<label class="col-sm-3 control-label">页面名称：</label>
								<div class="col-sm-8">

									<select id="adPage" name="adPage" class="form-control" >
										<option value="">请选择</option>
										<option  th:each="company : ${appletPage}" th:value="${company.value}" th:text="${company.label}"
												 th:selected="${company.value} eq ${wxAdPage.adPage}">平面设计</option>
									</select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">页面标签名称：</label>
								<div class="col-sm-8">
									<input id="adLabel" name="adLabel" th:value="${wxAdPage.adLabel}" class="form-control" type="text" readonly>
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">广告显示值：</label>
								<div class="col-sm-8">
									<input id="adValue" name="adValue" th:value="${wxAdPage.adValue}" class="form-control" type="text">
								</div>
							</div>
																					<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" src="/js/appjs/wallpaper/wxAdPage/edit.js" th:src="@{/js/appjs/wallpaper/wxAdPage/edit.js}">
	</script>

	<script type="text/javascript">
		$(function (){
			$("#adPage").change(function (){
				let text = $(this).children('option:selected').text();
				 $("#adLabel").val(text);

			})
		})
	</script>
</body>
</html>
